function getUid() {
    if (localStorage.getItem("uid")) {
        return localStorage.getItem("uid");
    }
    return null;
}